#include <stdio.h>
#include <stdlib.h>

int main()
{
    char ch_list[50] = {};
    char * ch_ptr = ch_list;
    unsigned char cnt = 0;
    unsigned char challenger = 0;
    while ((*ch_ptr++ = getchar()) != '\n')cnt++;
    for(int i = 0; i < cnt; i++)
    {
        if (ch_list[i] < ch_list[challenger])challenger = i;
    }
    printf("smallest:%hd;subscript:%hhd\n", ch_list[challenger],challenger);
    return 0;
}
